body {
	font-size: 80%; 
	line-height: 1.5;	
    font-family: "Lucida Grande", Verdana, Lucida, Helvetica, Arial, sans-serif;
    color: #222;
	text-align: left;
	background: #e6e6e7 url(/static/bg.gif) center top no-repeat;
	}				

/* links */
a { color: #018ece; }
a:visited { color: #990066; }
a:active {  color: #009933; }
*:focus {  background: #ffd; }
a:hover { text-decoration: none; }

/* headings */
h1 {
	font-size: 250%;
	font-weight: normal;
	margin: 0.2em 1.2em;
	}
    h1#logo {
        margin: 0;
        }
        h1#logo a {
            display: block;
            width: 200px;
            height: 73px;
            text-indent: -9999px;
            background: url(/static/biglogo.png) 0 0 no-repeat;
            }

h2 {
	font-size: 165%;
	line-height: 1.2;
	margin: 0.2em 0 0 0;
	font-weight: bold;
	}
    h2#subtitle {
        color: #666;
        margin-left: 90px;
        margin-top: -15px;
        }

h3 {
	font-size: 110%;
	line-height: 1.714;
	margin: 0;
	font-weight: bold;
	}
h4 {
	font-size: 110%;
	line-height: 1.714;
	margin: 0;
	font-weight: normal;
	font-style: italic;
	font-family: tahoma, verdana, arial, helvetica, sans-serif;
	}
h5 {
	margin: 0;
	font-weight: bold;
	font-family: arial, arial, helvetica, sans-serif;
	}

/* paragraphs */
p {
	font-size: 1em;
	margin: 0 0 0em 0;
	line-height: 1.5;
	}
strong { font-weight: bold; }

/* 'normal' lists */
ul, ol {
	margin-top: 1.5em;
	margin-bottom: 1.5em;
	margin-left: 2.55em;
	list-style-position: outside;
	}
	/* [FIXME: ie left margin] */

	ul { list-style: disc; }
	ol { list-style: decimal; }
	li {
		line-height: 1.5;
		margin: 0;
		}

dl {
    float: left;
    width: 98%;
    margin-bottom: 1.0em;
    }

    dl dt {
        clear: both;
        float: left;
        width: 35%;
        line-height: 1.5em;
        }
    dl dd {
        float: left;
        width: 64%;
        line-height: 1.5em;
        }

.print-page-break { display: none; }

/* common layout styles */
#wrapper {
    position: relative;
    text-align: center;
    padding-top: 6px;
	}
    #wrapper #inner {
        width: 78%;
        margin: 0 auto;
        }

    #wrapper #main {
        background: #fff;
        }

 /* top links */
 #topLinks {
    margin: 16px 2px 6px 2px;
    }
    #topLinks ul {
        list-style: none;
        margin: 0;
        padding: 0;
        float: right;
        }
        #topLinks ul li {
            display: inline;
            }
            #topLinks ul li a {
                display: block;
                border-right: 1px solid #666;
                float: left;
                margin-left: 9px;
                padding-right: 9px;
                font-size: 100%;
                color: #018ece;
                line-height: 1.5;
                }
                #topLinks ul li a#admin {
                    background: transparent url(/static/spanner.gif) no-repeat scroll left center;
                    padding-left: 20px;
                    }
                #topLinks ul li a#user {
                    background: transparent url(/static/user.gif) no-repeat scroll left center;
                    padding-left: 20px;
                    border-right-width: 0;
                    padding-right: 0;
                    }
                    
/* main */
#main {
    padding: 2px;
    border-bottom: 6px solid #dcdcdc;
    }
    #main .inner {
        padding: 24px 24px;
        }

    /* header */
    #main #header {
        margin-bottom: 12px;
        }
        #main #header .left {
            width: 29%;
            min-height: 9em;
            float: left;
            }
        #main #header .right {
            width: 70%;
            float: right;
            }
            #main #header .right #notifications {
                width: 65%;
                float: left;
                font-size: 85%;
                }
                #main #header .right #notifications .inner {
                    margin: 12px 0 0 24px;
                    }
                    #main #header .right #notifications .inner .item {
                        background: #ffc;
                        padding: 6px 18px;
                        border: 1px solid #ccc;
                        margin-bottom: 4px;
                        }
                    #main #header .right #notifications .inner a { color: #018ece; }
            #main #header .right #notifications .listForm dl dd.buttons {
                width: 100%;
                font-size: 120%;
                text-align: center;
                }

            #main #header .right #globalTools {
                width: 34%;
                float: right;
                font-size: 100%;
                }
                #main #header .right #globalTools ul {
                    float: right;
                    margin-top: 0;
                    margin-bottom: 0;
                    list-style: none;
                    }
                    #main #header #globalTools ul.contextTools {
                        }
                    #main #header #globalTools a {
                        width: 8em;
                        display: block;
                        padding: 4px 12px;
                        margin: 1px;
                        }
                        #main #header #globalTools .contextTools a {
                            display: block;
                            color: #f60;
                            background: #444;
                            padding: 4px 12px;
                            margin: 1px;
                            text-decoration: none;
                            }
                            #main #header #globalTools .contextTools li.selected a,
                            #main #header #globalTools .contextTools a:hover {
                                background: #f60;
                                color: #000;
                                }


    /* content */
    #main #content {
        padding: 12px 0 12px 12px;
        }
        #main #content .instruction {
            margin-top: 1.0em;
            }
        #main #content .intro {
            margin-top: 1.0em;
            margin-bottom: 1.5em;
            font-size: 110%;
            }
            #main #content .intro p.prominent {
                margin-top: 0.9em;
                margin-bottom: 0.9em;
                margin-left: 12px;
                font-size: 120%;
                color: #018ece;
                }
            #main #content .intro a.prominent {
                display: block;
                margin-left: 12px;
                font-size: 120%;
                color: #018ece;
                }

        #main #content #pic {
            float: left;
            }
            #main #content #pic img {
                max-width: 138px;
                }
            #main #content #pic form {
                margin-top: 2em;
                }
                #main #content #pic form input {
                    width: 138px;
                    }


        #main #content #info {
            margin-left: 6px;
            padding-bottom: 18px;
            }
            .group #main #content #info,
            .person #main #content #info {
                margin-left: 156px;
                }
            #main #content #info h2 {
                font-size: 250%;
                font-weight: normal;
                border-bottom: 1px solid #999;
                margin: 0 0 0 0;
                padding-bottom: 4px;
                line-height: 1.2;
                position: relative;
                }
                .group #main #content #info h2,
                .person #main #content #info h2 { margin-bottom: 0.5em; }

                #main #content #info h2 .inlineNav {
                    display: block;
                    position: absolute;
                    top: 1.425em;
                    right: 0;
                    font-size: 40%;
                    }
                    #main #content #info h2 .inlineNav a:first-child {
                        border-width: 0;
                        }
                    #main #content #info h2 .inlineNav a {
                        color: #018ece;
                        display: block;
                        float: left;
                        padding: 0 6px 0 6px;
                        line-height: 1;
                        border-left: 1px solid #999;
                        }

            #main #content #info q {
                clear: both;
                padding-left: 4px;
                }
            #main #content #info dl {
                padding-left: 8px;
                padding-bottom: 6px;
                font-size: 100%;
                kborder-bottom: 1px dotted #ccc;
                }
                #main #content #info dl.personal {
                    padding-top: 12px;
                    }

        #main #content .section {
            margin-left: 12px;
            margin-bottom: 24px;
            }
            .group #main #content .section,
            .person #main #content .section {
                margin-left: 156px;
                }
            #main #content .section h3 {
                border-bottom: 1px solid #999;
                position: relative;
                }
                #main #content .section h3 .inlineNav {
                    display: block;
                    position: absolute;
                    top: 0.5em;
                    right: 0;
                    font-size: 80%;
                    }
                    #main #content .section h3 .inlineNav a:first-child {
                        border-width: 0;
                        }
                    #main #content .section h3 .inlineNav a {
                        color: #018ece;
                        display: block;
                        float: left;
                        padding: 0 6px 0 6px;
                        line-height: 1;
                        border-left: 1px solid #999;
                        }

            #main #content .alert {
                padding: 6px 6px 6px 24px;
                color: #fff;
                background: #a00;
                }
                #main #content .alert a {
                    color: #ffc;
                    }
            #main #content .message {
                padding: 6px 6px 6px 24px;
                color: #000;
                background: #ffc;
                }
            #main #content .submessage {
                padding: 6px 6px 6px 24px;
                color: #000;
                background: #eee;
                }

            #main #content .section img.thumbnail {
                max-width: 38px;
                vertical-align: middle;
                padding-right: 4px;
                }
            #main #content .section p {
                padding-left: 8px;
                font-size: 100%;
                }
            #main #content .section ul {
                list-style: none;
                margin-top: 4px;
                margin-bottom: 4px;
                margin-left: 6px;
                }
                #main #content .section ul li {
                    position: relative;
                    font-size: 100%;
                    border-bottom: 1px dotted #ccc;
                    padding-top: 4px;
                    padding-bottom: 3px;
                    padding-left: 4px;
                    min-height: 42px;
                    }

        #main #content .section .left {
            float: left;
            width: 55%;
            }
        #main #content .section .right {
            float: left;
            width: 44%;
            }
            #main #content .section .right ul {
                float: right;
                }
                #main #content .section .right li {
                    border-width: 0;
                    min-height: 1.5em;
                    }
                #main #content .section .right a {
                    color: #018ece;
                    }

        #main #content .section .roles {
            position: absolute;
            top: 2px;
            right: 0;
            }
            #main #content .section .roles span {
                font-weight: bold;
                font-size: 75%;
                padding: 3px 6px;
                margin: 0 10px;
                min-width: 5.0em;
                display: block;
                text-align: center;
                }
            #main #content .section .roles .author {
                color: #fff;
                background: #522f11;
                }
            #main #content .section .roles .admin {
                color: #000;
                background: #ff0;
                }
            #main #content .section .roles .self {
                color: #fff;
                background: #fa7705;
                }
            #main #content .section .roles .friend,
            #main #content .section .roles .mutual {
                color: #fff;
                background: #0b7db1;
                }

        #main #content .section form {
            margin-top: 4px;
            margin-bottom: 8px;
            }
            #main #content .section form.inline input.text {
                min-width: 88px; 
                }



    /* admin styles */
    #main #content ul.tasks {
        margin-top: 12px;
        }
        #main #content ul.tasks li {
            margin-bottom: 12px;
            }
            #main #content ul.tasks li a {
                color: #018ece;
                }
    #main #content .swatch {
        padding: 3px 12px;
        margin-left: 4px;
        }

    /* personal code styles */
    #main #content .personalcode {
        font-family: courier, monospace;
        font-size: 200%;
        margin-left: 0.5em;
        }
    
    /* invitation styles */
    #main #content .invitation {
        width: 25em;
        border: 1px solid #ddd;
        background: #ffc;
        padding: 8px 24px 12px 24px;
        margin-left: 2em;
        margin-top: 1.1em;
        }
        #main #content .invitation .code {
            font-family: courier, monospace;
            font-size: 300%;
            margin-left: 0.5em;
            }


    /* edit form */
    form .tip {
        margin-left: 32%;
        margin-bottom: 1.0em;
        background: url(/static/arrow.png) 0 0 no-repeat;
        padding-left: 26px;
        }
        form .tip p {
            font-weight: bold;
            }

    form dd.public input {
        margin-left: 2em;
        }

    /* browse data */
    #dataBrowser {
        }
        #dataBrowser ul {
            margin-top: 0;
            padding-top: 0;
            }
        #dataBrowser h4 {
            font-weight: bold;
            display: inline;
            }
        #dataBrowser img {
            max-width: 200px;
            max-height: 200px;
            display: block;
            }



/* footer */
#footer {
    font-size: 90%;
    margin: 4px 2px 24px 2px;
    }
    #footer .left {
        width: 34%;
        float: left;
        }
        #footer .left ul {
            float: left;
            list-style: none;
            margin: 0;
            padding: 0;
            }
            #footer .left ul li {
                display: inline;
                }
                #footer .left ul li a {
                    display: block;
                    float: left;
                    margin-right: 18px;
                    }

    #footer .right {
        width: 65%;
        float: right;
        }
        #footer .right p {
            text-indent: 0;
            color: #666;
            }




/* button styles */
	a.button,
	input.submit {
		color: #018ece;
		background: #eee;
		border: 1px solid #aaa;
		border-left-width: 6px;
		padding: 0.20em 1.0em;
		margin: 0 !important;
		text-decoration: none;
		font-family: tahoma, verdana, arial, helvetica, sans-serif;
		font-size: 13px;
        display: block;
		}
    input.nowrap { display: inline !important; }

	a.button { padding: 0.35em 1.0em }

		input.submit.default,
		input.submit:focus,
		input.submit:active,
		a.button:hover,
		input.submit:hover {
			outline: 0;
			color: #000;
			background: #fafafa;
			border-color: #000;
			border-left-color: #018ece;
			cursor: pointer;
			}





/* forms */
/* forms 2 */
.formWrapper {
	margin-top: 1.0em;
	}

form dl {
	float: left;
	width: 100%;
	margin-top: 0.5em;
	margin-bottom: 1.4em;
    border-width: 0 !importat;
	}
    #main #content #info form {
        margin-right: 150px;
        }
        .group #main #content #info form,
        .person #main #content #info form {
            margin-right: 0;
            }
    form dl.single {
        margin-bottom: 0;
        }

	form dl dt {
		clear: both;
		float: left;
        width: 30%;
		line-height: 1.5em;
		margin-bottom: 0.35em;
		}
	form dl dd {
		float: left;
        width: 69%;
		line-height: 1.5em;
		margin-bottom: 0.35em;
		}


form dl dd ul.errors {
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: tahoma, verdana, arial, helvetica, sans-serif;
	font-size: 100%;
	color: #a00;
	}

			select {
				min-width: 220px;
				}
				select option {
					padding: 4px 3px;
					}

			input.text {
				border: 1px solid #666;
				border-left: 6px solid #999;
				padding: 4px 3px;
				min-width: 220px;
				}
				input.text:focus {
					border-left-color: #018ece;
					}

			input.checkbox,
			input.radio {
				height: 20px;
				float: left;
				margin-right: 6px;
				margin-top: 4px;
				}

			textarea {
				padding: 2px 3px 1px 3px;
				min-width: 274px;
				border: 1px solid #ccc;
				border-left: 6px solid #999;
				font-family: tahoma, verdana, arial, helvetica, sans-serif;
				font-size: 12px;
				line-height: 1.5;
				}
				textarea:focus {
					border-left-color: #018ece;
					}

	dd.buttons {
		float: left;
		width: auto;
		padding: 0.35em 0 0 0;
        padding-left: 30%;/*16.35em;*/
		}
		dd.cancel { padding-left: 0.7em !important; }


		dd.buttons input.submit span {
			text-decoration: underline;
			}
		dd.buttons .submit {
			font-weight: bold;
			}

    ul.listForm {
        list-style: none;
        padding: 0;
        margin: 0 0 0 6px;
        }
    ul.listForm li {
        border-bottom: 1px dotted #ccc;
        }
    form.listForm {
        margin-bottom: 0 !important;
        }
        form.listForm dl {
            margin: 0;
            padding: 0;
            }
            form.listForm dl dd {
                display: inline;
                float: left;
                width: 70%;
                padding: 0;
                }
            .listForm dl dd.buttons {
                float: right;
                width: 29%;
                padding-top: 4px;
                text-align: right;
                }
                .listForm dl dd.cancel { padding-left: 0.7em !important; }

            .listForm dl.checkboxForm {
                margin-top: 1.0em;
                margin-bottom: 0.5em;
                padding-bottom: 0.5em;
                }
                .listForm dl.author span {
                    color: #fff;
                    background: #522f11;
                    padding: 2px 6px;
                    }
                .listForm dl.admin span {
                    color: #000;
                    background: #ff0;
                    padding: 2px 6px;
                    }
                .listForm dl.checkboxForm dd.buttons {
                    float: none;
                    width: 100%;
                    }

                .listForm dl dd.buttons a.button,
                .listForm dl dd.buttons input.submit {
                    font-size: 85%;
                    font-weight: normal;
                    display: inline;
                    }


fieldset {
	clear: both;
	margin: 0;
	border-width: 0px 0 0 0;
	}
	fieldset legend {
		padding: 0;
		margin-left: -12px;
		}
	dt label.checkboxWrapper {
		display: block;
		padding-top: 0.75em;
		}
	dd.checkbox {
		clear: both;
		float: none;
		padding: 0 0 0 9.35em;
		position: relative;
		}
		.user dd.checkbox {
			top: -1.75em;
			}

.formWrapper ul.errors {
	color: #a00;
	margin: 0;
	list-style: none;
	}
